#include "input_data_handle.h"
#include "light_input_system.h"
#include "input_ring_buffer.h"
#include "app_log.h"
#include "cdn_light.h"
#include "input_mesh.h"
#include "cdn_key.h"

//事件处理，while(1)中调用
void InputEventProcess(void)
{
  InputEvent event;
	KeyInputEvent KeyEvent;

  if(GetOtherInputEvent(&event) == 0) //获取mesh输入事件
  {
    switch(event.eType)
    {
      case INPUT_EVENT_TYPE_MESH:
        MeshEventInputHandler(&event);
        break;
      default:
      break;
    }
  }

	if(GetKeyInputEvent(&KeyEvent) == 0)  //获取按键输入事件
  {
    switch(KeyEvent.eType)
    {
      case INPUT_EVENT_TYPE_KEY:
        KeyEventClickHandler(&KeyEvent);
        break;
      default:
      break;
    }
  }
}

